home *** CD-ROM | disk | FTP | other *** search
- property sNumber, hInit, vInit, hIncr, vIncr
-
- on new me
- global projector
- sNumber = [3, 4, 5, 6]
- hInit = [-200, -200, -200, -200]
- vInit = [-157, 150, -157, 150]
- if projector then
- hInit = [-3, -3, 406, 406]
- vInit = [-157, 150, -157, 150]
- repeat with i = 1 to count(sNumber)
- puppetSprite(getAt(sNumber, i), 1)
- end repeat
- end if
- init(me)
- return me
- end
-
- on init me
- global projector
- hIncr = 0
- vIncr = 15
- if projector then
- repeat with i = 1 to count(sNumber)
- set the loc of sprite getAt(sNumber, i) to point(getAt(hInit, i), getAt(vInit, i))
- end repeat
- end if
- end
-
- on move me
- repeat with i = 1 to count(sNumber)
- set the loc of sprite getAt(sNumber, i) to the loc of sprite getAt(sNumber, i) + point(hIncr, vIncr)
- end repeat
- if the locV of sprite getAt(sNumber, 1) >= 157 then
- repeat with i = 1 to count(sNumber)
- set the loc of sprite getAt(sNumber, i) to point(getAt(hInit, i), getAt(vInit, i))
- end repeat
- end if
- end
-
- on die me
- end
-